package com.wjh.controller;


import com.wjh.service.UserService;
import com.wjh.utils.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("system")
public class VisualizationController {

    @Resource
    private UserService userService;

    /**
     * 查询所用年纪用户用于图表
     * @return
     */
    @GetMapping("/charts")
    public ResponseResult charts(){
        return userService.charts();
    }

}
